body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, rgba(242, 242, 242, 0.7), rgba(242, 242, 242, 0.7)); /* Light grey to very light grey gradient with transparency */
    color: #333;
    padding: 40px;
    text-align: left;
    margin: 0px 0 0px; /* Top -30, right 0, bottom 0, left 0 */
    zoom: 0.9; /* WebView2 zoom level */
}

/* Hide all containers except the clippy-container and system-container by default */
.workspace-content .glassy-box:not(#stepClippyHeader):not(#stepHomeHeader) {
   display: none;
}

/* Workspace Action Buttons */
.workspace-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.workspace-btn {
    flex: 1 1 auto; /* Each button will take equal space */
	text-align: left;
    background-color: transparent !important;
	border: none !important; 
	box-shadow: none !important;
}

.workspace-btn:hover {
    background: linear-gradient(45deg, #926CFF, #FDCBFF); /* Purple Gradient on hover */
    color: white;
}

.workspace-btn .ws-action-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.workspace-btn .ws-action-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

/* More and Less buttons */
.additional-buttons {
    display: flex;
    justify-content: space-between;
}

.additional-buttons .ws-add-button {
    border: none; 
    background-color: transparent;
    font-size: 13px; 
    margin: 4px 2px; 
    box-shadow: none !important; 
}

.ws-add-button:disabled {
    background-color: #ddd; 
    color: #666;
    cursor: not-allowed;
}

/* Global container */
.container {
    display: flex;
    flex-wrap: wrap; /* Wrap to next line */
}

.clippy-container {
   flex: 2; /* Initial width */
   display: flex;
   flex-direction: column; 
   align-items: stretch; 
   margin-top: 20px; 
}

.workspace-container {
    flex: 3; /* Initial width */
    margin-left: 0px;
}

@media (max-width: 600px) { 
    .container {
        flex-direction: column; /* Change to a column layout on smaller screens */
    }

    .clippy-container {
        order: 2; /* Move left container to bottom */
        margin-top: 0; /* Remove top margin */
        margin-bottom: 20px; /* Add bottom margin */
    }

    .workspace-container {
        order: 1; /* Move workspace container to top */
    }
}

/* Navigation menu container */
.navigation-menu {
    padding: 0;
    margin-left: auto;
    margin-bottom: 10px;
}

/* Menu item styles */
.navigation-menu a {
	text-decoration: none;
    color: #333; 
    font-weight: 600; /* Semi-bold font */
    font-size: 16px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
	margin-right: 20px;
}

/* Hover effect */
.navigation-menu a:hover {
    color: #0078d4; /* Blue accent color */
}

/* Active/focus state */
.navigation-menu a.active,
.navigation-menu a:focus {
    color: #0078d4; 
    outline: none;
}

/* Indicator for active menu item */
.navigation-menu a.active::before,
.navigation-menu a:focus::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -15px; 
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #aa00ff, #ff00dd); /* Purple to pink gradient */
    border-radius: 50%; /* Round shape */
    animation: blink 1s infinite alternate; /* Blinking animation */
}

/* OPTIONAL: Navigation menu Tooltip text */
.navigation-menu a::after {
    content: attr(data-tooltip);
    position: absolute;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    bottom: -35px;
    left: 70px;
    transform: translateX(-50%);
    white-space: nowrap;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}

/* OPTIONAL: Show tooltip on hover */
.navigation-menu a:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Navigation menu Active Blinking animation */
@keyframes blink {
    from {
        opacity: 1; /* Fully visible */
    }
    to {
        opacity: 0; /* Fully transparent */
    }
}
	
/* Workspace / Home Header styling */
#stepHomeHeader {
    top: 30px;
    background: #f2e6f0;
    border-radius: 12px;
    padding: 20px;
    margin: 10px 10px;
    z-index: 998; 
}

/* All other Header styling */
#stepClippyHeader,
#stepSystemHeader, 
#stepAppsHeader,
#stepAppxHeader,
#stepStoreHeader {
    top: 30px;
    background: linear-gradient(45deg, #f0f0f0 0%, #dfe3f1 50%, #f0f0f0 100%); /* Light gradient */
    border-radius: 12px;
    padding: 20px;
    margin: 10px 10px;
    margin-bottom: 50px;
    z-index: 998; 
    transition: background-color 0.3s ease; /* Smooth transition */
}
 
/* Hover effect */
#stepClippyHeader:hover,
#stepSystemHeader:hover,
#stepAppsHeader:hover,
#stepAppxHeader:hover,
#stepStoreHeader:hover {
    background: linear-gradient(45deg, #f5f5f5 0%, #c9d6ff 50%, #f5f5f5 100%); /* Light gradient on hover */
}

/* Background color */
#stepClippyHeader,
#stepSystemHeader, 
#stepAppsHeader,
#stepAppxHeader,
#stepStoreHeader {
    background: linear-gradient(45deg, #f0f0f0 0%, #ffccff 50%, #f0f0f0 100%); /* Light magenta/pink gradient */
}

/* Styling for links */
.links-container {
    position: absolute;
    top: 10px;
    right: 10px;
}

.modern-link {
    color: #5B7BD1; /* Windows 11 Blue */
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-link:hover {
    color: #f7a0f5; 
}

/* Styling for the GitHub follow link */
.github-follow-link {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    background-image: linear-gradient(to right, #ff82a9, #d291bc, #ffb6c1);
    border-radius: 30px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.github-follow-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.github-follow-link::before {
    content: '⭐';
    margin-right: 10px;
}

/* BADGES */ 
/*Support statement for Handhelds in CoTweaker Plugin / Setup */	
.handheld-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #6f4fdc;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 8px; 
  border-radius: 5px;
}

/* Badges in Workspace / Home */
.recommended-badge,
.advanced-badge,
.expert-badge {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%); /* Position badges diagonally */
    padding: 4px 8px;
    border-radius: 3px;
    color: white;
}

.workspace-btn:hover .recommended-badge,
.workspace-btn:hover .advanced-badge,
.workspace-btn:hover .expert-badge {
    display: inline-block;
}

/* Recommended badge color */
.recommended-badge {
    background-color: #4CAF50; /* Green */
}

/* Advanced badge color */
.advanced-badge {
    background-color: #2196F3; /* Blue */
}

/* Expert badge color */
.expert-badge {
    background-color: #DD3333; /* Red */
}


/* Toggle light/dark mode */
.ui-toggle-button {
    color: black;
    border: none;
    border-radius: 5px; 
    font-size: 16px; 
    transition: background-color 0.3s;
}

.ui-toggle-button:hover {
    background: linear-gradient(135deg, #FFBBFF, #D699D6, #FFBBFF);
}

/* Settings menu */
.settings-dropbtn {
    background-color: transparent;
    padding: 0;
    font-size: 24px; 
    border: none;
    border-radius: 5px;
    width: 32px; /* Width for wider click area */
    text-align: center;
}

/* Dropdown container (hidden by default) */
.settings-dropdown {
    position: relative;
    display: inline-block;
    z-index: 99999;
    margin-right: 10px; /* Spacing between GitHub icon and dropdown */
}

/* Dropdown content */
.settings-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    right: 0;
}

/* Show the dropdown menu on hover */
.settings-dropdown:hover .settings-dropdown-content {
    display: block;
}

/* Dropdown links */
.settings-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.settings-dropdown-content a:hover {
    background-color: #ddd;
}

/* Change color of dropdown button on hover */
.settings-dropdown:hover .settings-dropbtn {
    color: #000;
    background-color: #f7e2f5;
}

/* Styling for back button */
#btnBack {
	position: absolute;
    top: 10px;
    left: 10px;
    background-color: transparent; 
	border: none;
}

#btnBack .icon {
    font-family: 'Segoe MDL2 Assets';
    font-size: 14px;
}
#btnBack:hover {
    background-color: #f0f0f0; 
}

/* Main Container styling */
.glassy-box {
    position: relative; 
	flex: 1; /* Make glassy-box grow to fill remaining space */
    max-width: 100%;
}

/* UI: Glassy-Box buttons in Headers/Plugins, e.g. CoTweaker, Decrapify etc. */
.glassy-box button {
	position: relative; /* Needed for the pseudo-element */
	font-family: "Segoe UI";
	font-size: 14px;
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #e0d0dd; /* Transparent border */
	margin-bottom: 5px;
    border-radius: 10px;
    color: black;
    background: #fefdfe;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Shadow effect */
}

.glassy-box button:hover {
    border: 1px solid #ff008e;
}

/* Clippy Animation */
@keyframes clippyAnimation {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(-2deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Styling for Clippy container */
#clippy-container {
    position: fixed;
    bottom: 20px; 
    right: -150px; 
    z-index: 999;
	animation: clippyAnimation 2s infinite;
}

/* Styling for Clippy image */
#clippy-container img {
    width: 180px; 
    height: auto; 
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

/* Styling for Assisted butttons container inside logContainer */
.assisted-container {
    display: flex;
}

/* Styling for logContainer */
#logContainer {
	position: fixed;
	bottom: 80px; 
	left: 20px;
	right: calc(20% + 100px);
	z-index: 998;
	background-color: #fff5c4;
	font-family: "Comic Sans MS", "MS Sans Serif", Arial, sans-serif; /* Vintage-inspired font stack */
	font-size: 14px; 
	color: #000080; /* Blue-ish color to match Clippy's text */
	border: 2px solid #000080;
	border-radius: 10px;
	padding: 5px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Triangle pointer for logContainer */
#logContainer::before {
	content: "";
	position: absolute;
	bottom: 15px; /* Distance from the bottom */
	right: -16px;  /* from the right */
	border-width: 8px; 
	border-style: solid;
	border-color: transparent transparent transparent #000080;
	z-index: -1;
}

/* UI: Chatbox Container */
.chatbox-container {
    left: 30px;
    max-height: 80%; 
    padding: 10px; 
    backdrop-filter: blur(10px); /* Apply blur effect to the background */
}

/* Additional style for chatbox container */
.chatbox-container input {
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    color: #000;
}

/* Chatbox: input styling */
#chatbox {
    background-color: rgba(255, 255, 255, 0.9); 
    height: 20px;
    padding: 12px;
    font-size: 16px;
    border: none; /* Remove default border */
    border: 1px solid #d0d0d0; 
    border-radius: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #7a336c; /* Magenta bottom border */
    outline: none;
}

.chatbox-items div {
	display: inline-block; 
    padding: 5px;
	font-size: 14px;
    cursor: pointer;
    background-color: #fff;
    border: 2px solid #7a336c; /* Rounded Microsoft Copilot magenta border for each result */
    border-radius: 8px; /* Rounded corners */
	margin-bottom: 10px;
}

.chatbox-items div:hover {
    background-color: #e9e9e9;
    color: magenta;
}

/* Assisted buttons container */
/* Button sizes for the buttons container */
#buttons-container,
#buttonsAppx-container {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap to the next line if necessary */
    gap: 8px; /* Let's add some spacing between buttons */
	margin-bottom: 8px; /* Add some space after buttons-container */
}

/* Common button styles */
#buttons-container button,
#buttonsAppx-container button,
#refreshButton {
	font-family: "Comic Sans MS", sans-serif; /* Because Clippy loved Comic Sans! */
    font-size: 13px;
	text-align: left;
    margin-bottom: 8px;
    border-radius: 10px;
    background: transparent;
    min-width: 100px;
    transition: transform 0.3s ease;
    flex: 1;
    border: none;
}

/* Styling for the middle/third button */
#buttons-container button:nth-child(3) {
    font-weight: 500;
    background: white;
    border: 1px solid #c0c0c0;
    border-radius: 1px;
}

#buttons-container button:hover,
#buttonsAppx-container button:hover,
#refreshButton:hover {
	border: 1px dashed #7f7f7f;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.2); 
}

/* Scale up the button on hover */
#buttonsAppx-container button:hover {
    transform: scale(1.2);
}

/* Add a trash/bin icon before the button text */
#buttonsAppx-container button::before {
    content: "📱 Remove ";
}

#refreshButton:hover {
	height: 20px;
    border-color: #0078cf; 
}

/* ASSISTED BUTTONS: Additional buttons are shown progressively as the container width increases, 
with a maximum of 6 buttons being displayed at widths of 1200px or larger based on the size of the viewport. */

/* Initially hide all buttons */
#buttons-container button {
    display: none;
}

/* Show the first two buttons initially */
#buttons-container button:nth-child(-n+2) {
    display: inline-block;
}

/* Show additional buttons as container width increases */
@media screen and (min-width: 400px) {
    #buttons-container button:nth-child(-n+2) {
        display: inline-block;
    }
}

@media screen and (min-width: 600px) {
    #buttons-container button:nth-child(-n+4) {
        display: inline-block;
    }
}

@media screen and (min-width: 800px) {
    #buttons-container button:nth-child(-n+5) {
        display: inline-block;
    }
}

@media screen and (min-width: 1000px) {
    #buttons-container button:nth-child(-n+6) {
        display: inline-block;
    }
}

/* Ensure a maximum of 6 buttons are shown */
@media screen and (min-width: 1200px) {
    #buttons-container button {
        display: inline-block;
    }
}

/* PLUGIN: CoTweaker */
/* UI:  Header styling for Toggle Switches in CoTweaker */
/* Highlight Feature status in CoTweaker js backend */
 .CoTweakerFeatureON { color: green; }
 .CoTweakerFeatureOFF { color: red; }

/* Styling for the section headers */
.section-header {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    color: #000; 
    border-bottom: 2px solid rgba(255, 0, 255, 0.4); /* Semi-transparent magenta border */
    padding-bottom: 10px;
}

/* Styling for the settings group */
.settings-group {
    margin-bottom: 30px;
    padding: 20px; 
}

/* Styling for the descriptions */
.description {
    display: none; /* Initially hide descriptions */
    margin-top: 10px; 
}

/* Styling for the individual settings */
.toggle-switch-label {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    transition: background-color 0.3s;
    vertical-align: middle;
    margin-right: 10px;
}

.toggle-switch-label:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]:checked + .toggle-switch-label {
    background-color: #86d993; /* Green color when checked */
}

input[type="checkbox"]:checked + .toggle-switch-label:before {
    transform: translateX(20px); /* Move the circle to the right when checked */
}

.checkbox-label {
cursor: help;
}	
	
/* PLUGIN: Decrapify */
.package-group {
  margin-bottom: 20px;
}

.package-group h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.toggle-switch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 10px;
}

.package-toggle-switch {
  display: flex;
  align-items: center;
}

.package-toggle-switch input {
  display: none;
}

.package-toggle-switch label {
  cursor: pointer;
  background-color: #ccc;
  border-radius: 10px;
  padding: 8px 12px;
}

.package-toggle-switch input:checked + label {
  background-color: #4CAF50;
  color: #fff;
}

/* PLUGIN: WingetUI */
#appList {
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between; /
}

.app-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s;
	width: calc(33.33% - 20px); /* Width of each app item */
    margin-bottom: 20px; /* Space between rows */
}

.app-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2); /* Slightly larger shadow on hover */
}

/* STORE: Extensions */
#plugin-categories-container {
    display: flex;
    flex-wrap: wrap;
	gap: 10px; 	
}

/* Preinstalled badge */
.plugin-badge {
   background-color: #8f3cd5;
   color: white;
   padding: 4px 8px;
   border-radius: 4px;
   font-size: 12px;
   margin-left: 8px; 
}

.plugin-entry {
    width: calc(33.33% - 20px);
    background-color: #f2effd;
    border: 1px solid #e8e8ed;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 10px;
}

.plugin-entry h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.plugin-entry p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.plugin-entry .execute-button {
    background-color: #e26bf8;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 14px;
    transition: background-color 0.3s;
}
.plugin-entry .execute-button:hover {
    background-color: #8f3cd5;
}